<ion-view view-title="促销" class="myworld_disscount_sales">

	<!--描述：滑动块-->
	<ion-content>
		  <li class="item item-borderless padding-0">	
			<div class="row padding-0 font-large-my text-center">
				<div class="col" ng-repeat="t in detail.top" ng-class="selectIndex==$index?'top-activated':''" on-tap="activeSlide($index)">
					{{::t}}
				</div>
				<div class="col" on-tap="onshow_sales(3)">
					发起促销
				</div>
			</div>
		</li>	
			
			<!--描述：主要内容-->
			<ion-slide-box delegate-handle="main-handle" on-slide-changed="slideChanged(index)" active-slide="slideIndex" show-pager="false">
					
				<ion-slide >
					<div class="list">
					  <div class="item item-thumbnail-left" style="padding-right: 5px; padding-bottom: 5px;" ng-repeat="doing in doing.act">
							<img src="{{doing.image.image}}">
							<p on-tap="onshow_sales(4)">{{doing.name}}</p> 
							<p>商品数量:{{doing.goods_count}}<span class="right-zhang">参加人数:{{doing.member_count}}</span></p>
							<p><i class="icon ion-clock"></i>{{doing.start_time}}</p>
							<p><i class="icon ion-clock"></i>{{doing.end_time}}</p>
							<p><i class="icon ion-android-contacts assertive"></i>群互动</p>
					  </div>
					</div>
				</ion-slide>
				
				<!--待审核-->
				<ion-slide >
					<div class="list">
						 <div class="item item-thumbnail-left" style="padding-right: 5px; padding-bottom: 5px;" ng-repeat="pending in pending.act">
							<img src="{{pending.image.image}}">
							<p>{{pending.name}}</p> 
							<p>商品数量:{{pending.goods_count}}<span class="right-zhang">参加人数:{{pending.member_count}}</span></p>
							<p><i class="icon ion-clock"></i>{{pending.start_time}}</p>
							<p><i class="icon ion-clock"></i>{{pending.end_time}}</p>
							<p>
								<span><i class="icon ion-ios-alarm-outline energized"></i>&nbsp;待审核</span>
								<span class="margin-left-10-my" on-tap='onshow_sales(3,pending.act_id)'><i class="icon ion-compose positive"></i>&nbsp;编辑</span>
							</p>
					  </div>
					</div>
				</ion-slide>
				
				<!--已结束-->
				<ion-slide >
					<div class="list">
						<div class="item item-thumbnail-left" style="padding-right: 5px; padding-bottom: 5px;" ng-repeat="ended in ended.act">
							<img src="{{ended.image.image}}">
							<p>{{ended.name}}</p> 
							<p>商品数量:{{ended.goods_count}}<span class="right-zhang">参加人数:{{ended.member_count}}</span></p>
							<p><i class="icon ion-clock"></i>{{ended.start_time}}</p>
							<p><i class="icon ion-clock"></i>{{ended.end_time}}</p>
							<p>
								<span on-tap="onshow_sales(5,ended.act_id)"><i class="icon ion-android-options assertive"></i>&nbsp;统计</span>
							</p>
					  </div>
					</div>
				</ion-slide>
				
			</ion-slide-box>
	</ion-content>
</ion-view>